	<layout name="newlayout" />
	<STYLE>
   .clear {  clear: both;   }
	.input_class{width:15px;height:10px;}
.num{margin: 0 5px 0 0;padding: 3px 6px;color: #57a000;text-decoration: none;border: 1px solid #ddd;-webkit-border-radius: 4px;border-radius: 4px;}
.current{margin: 0 5px 0 0;padding: 3px 6px;color: #57a000;text-decoration: none;border: 1px solid #ddd;-webkit-border-radius: 4px;border-radius: 4px;background: #469400 url('{__IMG__}bg-button-green.gif') top left repeat-x !important;border-color: #459300 !important;color: #fff !important;}
.star{color:red;}
#myModal{
	display: block;
left: 50%;
margin-left: -223px;
z-index: 1002;
position: fixed;
top: 50%;
margin-top: -159px;
-moz-border-radius: 6px;
background: #eef2f7;
-webkit-border-radius: 6px;
border: 1px solid #536376;
-webkit-box-shadow: rgba(0,0,0,.6) 0px 2px 12px;
-moz-box-shadow: rgba(0,0,0,.6) 0px 2px 12px;
padding: 14px 22px;
width: 250px;
display: none;}
	</STYLE>
	<div id="main-content"> <!-- Main Content Section with everything -->
			<!-- Page Head -->
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>基本设置</h3>
					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">列表</a></li> <!-- href must be unique and match the id of target div -->
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						
						<div class="notification attention png_bg">
							<a href="#" class="close"><img src="__IMG__cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>
								提示：关键字段不能为数字！！
							</div>
						</div>
						
						<table>
							
							<thead>
								<tr>
								   <th></th>
								   <th>名称</th>
								   <th>内容</th>
								   <th>字段名</th>
								</tr>
								
							</thead>
							<tfoot>
								<tr>
									<td colspan="6">
										<div class="bulk-actions align-left">
											<a class="button" href="javascript:"   onclick="add_set()">新增</a>
											<a class="button" href="javascript:"  onclick="$('#web_up').submit();">提交修改</a>
										</div>
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
							<tbody>
								<form action="/admin/WebSet/baseset" method="post" id="web_up">
								<?php $i=1;?>
         						<foreach name="siteconfig" item="vo" >  
								<tr>
								 <td>{$i}</td>
						            <td> <input type="text" class="text-input" name="set_lang[{$key}]" value="{:L($key)}"></td>
						            <td> <input type="text" class="text-input" name="set_config[{$key}]" value="{$vo}"></td>
						            <td>{$key}</td>
								</tr>
								<?php $i++;?>
									</foreach>
							</form>
							</tbody>
						</table>
					</div> 
				</div> 
			</div> 
		</div> 
<div  id="myModal"  >
      	<form action="/admin/WebSet/baseset" method="post" id="web_add">
			      	  <div >
			      	  <label >新增基本信息：</label>
			     	 </div>
			    	<div >
				    <label >名称</label>
				    <input type="text" class="text-input" id="add_name" name="">
				  </div>
				  <div >
				    <label >内容</label>
				    <input type="text" class="text-input" id="add_content"  name="">
				  </div>
				  <div >
				    <label >字段名</label>
				    <input type="text" class="text-input" id="add_key"  name="">
				  </div>
				  </form>
  <a class="button "  onclick="add_set();">Close</a>
        <a class="button"  onclick="web_set_name();">保存</a>
</div><!-- /.modal -->
<script>
function add_set(){
	 $("#myModal").slideToggle("slow");
}

function web_set_name(){
	var key=$("#add_key").val();
	$("#add_name").attr("name","set_lang["+key+"]");
	$("#add_content").attr("name","set_config["+key+"]");
	$("#web_add").submit();
}
</script>






